/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
    background: #f8f9fa;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 0;
    margin: 0;
}

/* 屏幕容器 - 修改后直接作为主容器 */
.screen {
    width: 100%;
    max-width: 500px;
    min-height: 100vh;
    background: #f8f9fa; /* 浅灰白色背景 */
    overflow: hidden;
    position: relative;
}

/* 移除手机框架相关样式 */
/* 已移除phone-frame相关样式 */

/* 状态栏（已移除） */
.status-bar {
    display: none;
}

.time {
    display: none;
}

.battery {
    display: none;
}

/* 应用容器 */
.app-container {
    min-height: calc(100vh - 80px);
    padding-bottom: 80px;
    background: #f8f9fa;
    overflow-y: auto;
    position: relative;
}

/* 页面头部 */
.header {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.greeting {
    font-size: 24px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 8px;
}

.date {
    color: #718096;
    font-size: 14px;
}

/* 卡片样式 */
.card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* 余额卡片 */
.balance-card {
    margin: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); /* 紫蓝渐变 */
    border-radius: 20px;
    padding: 30px 20px;
    color: white;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.balance-label {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 8px;
}

.balance-amount {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
}

.balance-stats {
    display: flex;
    justify-content: space-between;
}

.stat {
    text-align: center;
}

.stat-label {
    font-size: 12px;
    opacity: 0.7;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 16px;
    font-weight: 600;
}

/* 快速操作 */
.quick-actions {
    padding: 0 20px;
    margin-bottom: 20px;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 15px;
}

.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.action-btn {
    background: white;
    border: none;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.action-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.expense-icon {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24); /* 红色渐变 */
    color: white;
}

.income-icon {
    background: linear-gradient(135deg, #51cf66, #40c057); /* 绿色渐变 */
    color: white;
}

.action-text {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
}

/* 交易记录 */
.recent-transactions {
    padding: 0 20px;
}

.transaction-item {
    background: white;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.transaction-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

/* 用户头像样式 */
.item-user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex-shrink: 0;
    background: #007bff;
    color: white;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    font-weight: 600;
}

/* 选项按钮样式 */
.transaction-options {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #f8f9fa;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #666;
    flex-shrink: 0;
    transition: background-color 0.2s;
}

.transaction-options:hover {
    background: #e9ecef;
}

.transaction-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.food-icon {
    background: #fff3cd;
    color: #856404;
}

.transport-icon {
    background: #d1ecf1;
    color: #0c5460;
}

.salary-icon {
    background: #d4edda;
    color: #155724;
}

.transaction-info {
    flex: 1;
    margin-left: 8px;
}

.transaction-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    margin: 0;
    line-height: 1.2;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.transaction-info h4:hover {
    background-color: #f8f9fa;
}

.transaction-info p {
    font-size: 12px;
    color: #718096;
}

.transaction-amount {
    font-size: 14px;
    font-weight: 600;
    margin-right: 8px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.transaction-amount:hover {
    background-color: #f8f9fa;
}

.expense-amount {
    color: #e53e3e;
}

.income-amount {
    color: #38a169;
}

/* 底部导航 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: white;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 20px;
    border-top: 1px solid rgba(0,0,0,0.05);
    z-index: 10;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #718096;
    font-size: 12px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.nav-item.active {
    color: #667eea;
}

.nav-icon {
    font-size: 20px;
}

/* 表单样式 */
.form-container {
    padding: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-secondary {
    background: #e2e8f0;
    color: #2d3748;
}

.btn-outline {
    background: transparent;
    border: 1px solid #667eea;
    color: #667eea;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

/* 登录和注册页面 */
.auth-container {
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.auth-logo {
    font-size: 40px;
    margin-bottom: 30px;
}

.auth-title {
    font-size: 24px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 30px;
    text-align: center;
}

.auth-form {
    width: 100%;
}

.auth-footer {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
    color: #718096;
}

.auth-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.social-login {
    margin-top: 30px;
    width: 100%;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 15px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
    cursor: pointer;
    transition: all 0.3s ease;
}

.social-btn:hover {
    background: #f8f9fa;
}

.divider {
    display: flex;
    align-items: center;
    margin: 30px 0;
    color: #718096;
    font-size: 14px;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.divider::before {
    margin-right: 10px;
}

.divider::after {
    margin-left: 10px;
}

/* 统计页面 */
.chart-container {
    margin: 20px;
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.chart-title {
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
}

.chart-filter {
    display: flex;
    gap: 10px;
}

.filter-btn {
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn.active {
    background: #667eea;
    color: white;
}

.filter-btn:not(.active) {
    background: #e2e8f0;
    color: #718096;
}

/* 一句话记账 */
.quick-record {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-radius: 24px 24px 0 0;
    padding: 30px 20px;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.1);
    z-index: 100;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.quick-record.active {
    transform: translateY(0);
}

.quick-record-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.quick-record-title {
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
}

.close-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.voice-input {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.voice-input-field {
    flex: 1;
    padding: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
}

.mic-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mic-btn:hover {
    transform: scale(1.05);
}

/* 图片上传功能样式 */
.image-upload-section {
    margin: 20px 0;
}

.upload-divider {
    text-align: center;
    margin: 15px 0;
    position: relative;
}

.upload-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e2e8f0;
    z-index: 1;
}

.upload-divider span {
    background: white;
    padding: 0 15px;
    color: #718096;
    font-size: 14px;
    position: relative;
    z-index: 2;
}

.image-upload-area {
    border: 2px dashed #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.image-upload-area:hover {
    border-color: #667eea;
    background: #f7fafc;
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.upload-icon {
    font-size: 32px;
    opacity: 0.6;
}

.upload-text {
    font-size: 16px;
    color: #4a5568;
    font-weight: 500;
}

.upload-hint {
    font-size: 12px;
    color: #718096;
}

.image-preview {
    position: relative;
}

.image-preview img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.image-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 8px;
}

.btn-icon {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-icon:hover {
    background: rgba(0,0,0,0.8);
    transform: scale(1.1);
}

/* 记账表单 */
.record-form {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.record-form.active {
    opacity: 1;
    pointer-events: auto;
}

.record-form-content {
    width: 90%;
    max-width: 350px;
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.record-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.record-form-title {
    font-size: 20px;
    font-weight: 700;
    color: #2d3748;
}

.record-type-tabs {
    display: flex;
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
}

.record-type-tab {
    flex: 1;
    padding: 12px;
    text-align: center;
    font-weight: 600;
    cursor: pointer;
}

.record-type-tab.expense {
    background: #fff5f5;
    color: #e53e3e;
}

.record-type-tab.income {
    background: #f0fff4;
    color: #38a169;
}

.record-type-tab.active {
    background: #e53e3e;
    color: white;
}

.record-type-tab.active.income {
    background: #38a169;
}

.category-selector {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.category-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.category-item.active .category-icon {
    background: #667eea;
    color: white;
}

.category-name {
    font-size: 12px;
    color: #718096;
}

.category-item.active .category-name {
    color: #667eea;
    font-weight: 600;
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.balance-card,
.action-btn,
.transaction-item,
.card {
    animation: fadeIn 0.6s ease-out;
}

.action-btn:nth-child(2),
.transaction-item:nth-child(2) {
    animation-delay: 0.1s;
}

.transaction-item:nth-child(3) {
    animation-delay: 0.2s;
}

/* 用户中心页面 */
.user-header {
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 0 0 30px 30px;
}

.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin-bottom: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.user-name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 5px;
}

.user-id {
    font-size: 14px;
    opacity: 0.8;
}

.menu-list {
    margin: 20px;
}

.menu-item {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.menu-item-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.menu-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #667eea;
}

.menu-text {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
}

.menu-arrow {
    color: #a0aec0;
    font-size: 18px;
}

/* 明细页面 */
.detail-date-header {
    padding: 15px 20px;
    background: rgba(255,255,255,0.95);
    font-weight: 600;
    color: #2d3748;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    top: 0;
    z-index: 5;
}

.detail-date-summary {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #718096;
    margin-top: 5px;
}

/* 遮罩层 */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* 响应式调整 */
@media (max-width: 400px) {
    .phone-frame {
        width: 100%;
        height: 100vh;
        border-radius: 0;
        padding: 0;
    }
    
    .screen {
        border-radius: 0;
    }
}

/* 预算概览卡片 - 优化版 */
.budget-overview-card-enhanced {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 24px;
    margin: 20px;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
    color: white;
    animation: fadeIn 0.6s ease-out;
    position: relative;
    overflow: hidden;
}

.budget-overview-card-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    pointer-events: none;
}

.budget-header-enhanced {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.budget-title-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.budget-icon {
    font-size: 24px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.budget-title-info h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: white;
}

.budget-subtitle {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 2px;
}

.budget-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.budget-setting-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.budget-setting-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.budget-manage-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.budget-manage-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    text-decoration: none;
}

/* 预算周期选择器 - 优化版 */
.period-selector-enhanced {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.period-btn-enhanced {
    flex: 1;
    background: transparent;
    border: none;
    border-radius: 8px;
    padding: 12px 8px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.period-btn-enhanced.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.period-label {
    font-size: 12px;
    font-weight: 500;
}

.period-amount {
    font-size: 14px;
    font-weight: 600;
}

/* 智能提醒系统 - 优化版 */
.smart-alert-system {
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.smart-alert-item {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.smart-alert-item.warning {
    background: rgba(255, 193, 7, 0.2);
    border-color: rgba(255, 193, 7, 0.3);
}

.smart-alert-item.danger {
    background: rgba(220, 53, 69, 0.2);
    border-color: rgba(220, 53, 69, 0.3);
}

.smart-alert-item.success {
    background: rgba(40, 167, 69, 0.2);
    border-color: rgba(40, 167, 69, 0.3);
}

.smart-alert-icon {
    font-size: 16px;
}

.smart-alert-text {
    flex: 1;
    font-size: 13px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
}

/* 预算进度展示 - 优化版 */
.budget-progress-enhanced {
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.progress-info {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.used-amount {
    font-size: 24px;
    font-weight: 700;
    color: white;
}

.total-amount {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
}

.progress-percentage {
    font-size: 18px;
    font-weight: 600;
    color: white;
}

.progress-bar-enhanced {
    position: relative;
    height: 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
    border-radius: 6px;
    transition: width 0.6s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-markers {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.marker {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.5);
    transform: translateX(-50%);
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
}

/* 预算洞察分析 - 优化版 */
.budget-insights-enhanced {
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.insight-card {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.insight-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.insight-icon {
    font-size: 20px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.insight-content {
    flex: 1;
}

.insight-value {
    font-size: 18px;
    font-weight: 700;
    color: white;
    margin-bottom: 2px;
}

.insight-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2px;
}

.insight-trend {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.7);
}

/* 分类预算概览 - 优化版 */
.category-budget-overview {
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.category-title {
    font-size: 16px;
    font-weight: 600;
    color: white;
}

.category-expand-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-expand-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.category-summary {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.category-summary-item {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 12px;
    color: white;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.category-details {
    margin-top: 12px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-detail-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.category-detail-icon {
    font-size: 16px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-detail-info {
    flex: 1;
}

.category-detail-name {
    font-size: 14px;
    font-weight: 500;
    color: white;
    margin-bottom: 2px;
}

.category-detail-progress {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
}

.category-detail-amount {
    font-size: 14px;
    font-weight: 600;
    color: white;
}

/* 智能建议和快速操作 - 优化版 */
.budget-actions-enhanced {
    position: relative;
    z-index: 1;
}

.smart-suggestions {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-icon {
    font-size: 16px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.suggestion-text {
    flex: 1;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.quick-action-enhanced {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.quick-action-enhanced:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.quick-action-enhanced .action-icon {
    font-size: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quick-action-enhanced .action-text {
    flex: 1;
    text-align: left;
}

.action-title {
    font-size: 14px;
    font-weight: 600;
    color: white;
    margin-bottom: 2px;
}

.action-desc {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
}

/* 首页预算功能优化样式 */
/* 预算周期切换器 */
.budget-period-switcher {
    display: flex;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 20px;
}

.period-btn {
    flex: 1;
    padding: 8px 12px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #718096;
    cursor: pointer;
    transition: all 0.3s ease;
}

.period-btn.active {
    background: white;
    color: #667eea;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 智能提醒系统 */
.smart-alerts {
    margin-bottom: 20px;
}

.alert-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #fff3cd;
    border-radius: 12px;
    margin-bottom: 8px;
    border-left: 4px solid #ffc107;
}

.alert-item.warning {
    background: #fff3cd;
    border-left-color: #ffc107;
}

.alert-item.danger {
    background: #f8d7da;
    border-left-color: #dc3545;
}

.alert-item.success {
    background: #d4edda;
    border-left-color: #28a745;
}

.alert-icon {
    font-size: 16px;
    color: #856404;
}

.alert-item.warning .alert-icon {
    color: #856404;
}

.alert-item.danger .alert-icon {
    color: #721c24;
}

.alert-item.success .alert-icon {
    color: #155724;
}

.alert-text {
    flex: 1;
    font-size: 14px;
    color: #856404;
    line-height: 1.4;
}

.alert-item.warning .alert-text {
    color: #856404;
}

.alert-item.danger .alert-text {
    color: #721c24;
}

.alert-item.success .alert-text {
    color: #155724;
}

/* 预算洞察 */
.budget-insights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.insight-item {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}

.insight-value {
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 4px;
}

.insight-label {
    font-size: 12px;
    color: #718096;
}

/* 动态类别预算项 */
.budget-categories-dynamic {
    margin-top: 15px;
}

.category-budget-item-enhanced {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.category-budget-item-enhanced:hover {
    background: #e9ecef;
    transform: translateY(-1px);
}

.category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.category-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4CAF50;
}

.category-status.warning {
    background: #FFC107;
}

.category-status.danger {
    background: #dc3545;
}

.category-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-percentage {
    font-size: 12px;
    font-weight: 600;
    color: #4CAF50;
}

.category-percentage.warning {
    color: #FFC107;
}

.category-percentage.danger {
    color: #dc3545;
}

/* 快速操作按钮 */
.budget-quick-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 20px;
}

.quick-action-btn {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
    color: #718096;
}

.quick-action-btn:hover {
    background: #f8f9fa;
    border-color: #667eea;
    color: #667eea;
}

.quick-action-icon {
    font-size: 16px;
}

/* 响应式优化 */
@media (max-width: 400px) {
    .budget-insights {
        grid-template-columns: 1fr;
    }
    
    .budget-quick-actions {
        grid-template-columns: 1fr 1fr;
    }
    
    .period-btn {
        font-size: 12px;
        padding: 6px 8px;
    }
}

.progress-normal {
    background: #4CAF50;
}

.progress-warning {
    background: #FFC107;
}

.progress-danger {
    background: #dc3545;
}

.budget-categories-mini {
    margin-top: 15px;
}

.category-budget-item {
    margin-bottom: 12px;
}

.category-budget-info {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
}

.category-icon {
    margin-right: 8px;
    font-size: 16px;
}

.category-name {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: #2d3748;
}

.category-amount {
    font-size: 14px;
    color: #718096;
}

.category-progress-bar {
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
}

.category-progress {
    height: 100%;
    background: #667eea;
    border-radius: 3px;
}

.category-item.active .category-icon {
    background: #667eea;
    color: white;
}

.category-name {
    font-size: 12px;
    color: #718096;
}

.category-item.active .category-name {
    color: #667eea;
    font-weight: 600;
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.balance-card,
.action-btn,
.transaction-item,
.card {
    animation: fadeIn 0.6s ease-out;
}

.action-btn:nth-child(2),
.transaction-item:nth-child(2) {
    animation-delay: 0.1s;
}

.transaction-item:nth-child(3) {
    animation-delay: 0.2s;
}

/* 用户中心页面 */
.user-header {
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 0 0 30px 30px;
}

.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin-bottom: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.user-name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 5px;
}

.user-id {
    font-size: 14px;
    opacity: 0.8;
}

.menu-list {
    margin: 20px;
}

.menu-item {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.menu-item-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.menu-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #667eea;
}

.menu-text {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
}

.menu-arrow {
    color: #a0aec0;
    font-size: 18px;
}

/* 明细页面 */
.detail-date-header {
    padding: 15px 20px;
    background: rgba(255,255,255,0.95);
    font-weight: 600;
    color: #2d3748;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    top: 0;
    z-index: 5;
}

.detail-date-summary {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #718096;
    margin-top: 5px;
}

/* 遮罩层 */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* 响应式调整 */
@media (max-width: 400px) {
    .phone-frame {
        width: 100%;
        height: 100vh;
        border-radius: 0;
        padding: 0;
    }
    
    .screen {
        border-radius: 0;
    }
}

/* 预算概览卡片 - 已在前面定义 */

.category-item.active .category-icon {
    background: #667eea;
    color: white;
}

.category-name {
    font-size: 12px;
    color: #718096;
}

.category-item.active .category-name {
    color: #667eea;
    font-weight: 600;
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.balance-card,
.action-btn,
.transaction-item,
.card {
    animation: fadeIn 0.6s ease-out;
}

.action-btn:nth-child(2),
.transaction-item:nth-child(2) {
    animation-delay: 0.1s;
}

.transaction-item:nth-child(3) {
    animation-delay: 0.2s;
}

/* 用户中心页面 */
.user-header {
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 0 0 30px 30px;
}

.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin-bottom: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.user-name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 5px;
}

.user-id {
    font-size: 14px;
    opacity: 0.8;
}

.menu-list {
    margin: 20px;
}

.menu-item {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.menu-item-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.menu-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #667eea;
}

.menu-text {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
}

.menu-arrow {
    color: #a0aec0;
    font-size: 18px;
}

/* 明细页面 */
.detail-date-header {
    padding: 15px 20px;
    background: rgba(255,255,255,0.95);
    font-weight: 600;
    color: #2d3748;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    top: 0;
    z-index: 5;
}

.detail-date-summary {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #718096;
    margin-top: 5px;
}

/* 遮罩层 */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* 响应式调整 */
@media (max-width: 400px) {
    .phone-frame {
        width: 100%;
        height: 100vh;
        border-radius: 0;
        padding: 0;
    }
    
    .screen {
        border-radius: 0;
    }
}

/* 预算概览卡片 */
.budget-overview-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.budget-overview-card .section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.budget-link {
    font-size: 14px;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.budget-progress {
    margin: 15px 0;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
    color: #718096;
}

.progress-bar-container {
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-normal {
    background: #4CAF50;
}

.progress-warning {
    background: #FFC107;
}

.progress-danger {
    background: #dc3545;
}

.budget-categories-mini {
    margin-top: 15px;
}

.category-budget-item {
    margin-bottom: 12px;
}

.category-budget-info {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
}

.category-icon {
    margin-right: 8px;
    font-size: 16px;
}

.category-name {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: #2d3748;
}

.category-amount {
    font-size: 14px;
    color: #718096;
}

.category-progress-bar {
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
}

.category-progress {
    height: 100%;
    background: #667eea;
    border-radius: 3px;
}

.category-item.active .category-icon {
    background: #667eea;
    color: white;
}

.category-name {
    font-size: 12px;
    color: #718096;
}

.category-item.active .category-name {
    color: #667eea;
    font-weight: 600;
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.balance-card,
.action-btn,
.transaction-item,
.card {
    animation: fadeIn 0.6s ease-out;
}

.action-btn:nth-child(2),
.transaction-item:nth-child(2) {
    animation-delay: 0.1s;
}

.transaction-item:nth-child(3) {
    animation-delay: 0.2s;
}

/* 用户中心页面 */
.user-header {
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 0 0 30px 30px;
}

.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin-bottom: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.user-name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 5px;
}

.user-id {
    font-size: 14px;
    opacity: 0.8;
}

.menu-list {
    margin: 20px;
}

.menu-item {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.menu-item-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.menu-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #667eea;
}

.menu-text {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
}

.menu-arrow {
    color: #a0aec0;
    font-size: 18px;
}

/* 明细页面 */
.detail-date-header {
    padding: 15px 20px;
    background: rgba(255,255,255,0.95);
    font-weight: 600;
    color: #2d3748;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    top: 0;
    z-index: 5;
}

.detail-date-summary {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #718096;
    margin-top: 5px;
}

/* 遮罩层 */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* 响应式调整 */
@media (max-width: 400px) {
    .phone-frame {
        width: 100%;
        height: 100vh;
        border-radius: 0;
        padding: 0;
    }
    
    .screen {
        border-radius: 0;
    }
}

/* 预算概览卡片 */
.budget-overview-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.budget-overview-card .section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.budget-link {
    font-size: 14px;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.budget-progress {
    margin: 15px 0;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
    color: #718096;
}

.progress-bar-container {
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-normal {
    background: #4CAF50;
}

.progress-warning {
    background: #FFC107;
}

.progress-danger {
    background: #dc3545;
}

.budget-categories-mini {
    margin-top: 15px;
}

.category-budget-item {
    margin-bottom: 12px;
}

.category-budget-info {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
}

.category-icon {
    margin-right: 8px;
    font-size: 16px;
}

.category-name {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: #2d3748;
}

.category-amount {
    font-size: 14px;
    color: #718096;
}

.category-progress-bar {
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
}

.category-progress {
    height: 100%;
    background: #667eea;
    border-radius: 3px;
}

.category-item.active .category-icon {
    background: #667eea;
    color: white;
}

.category-name {
    font-size: 12px;
    color: #718096;
}

.category-item.active .category-name {
    color: #667eea;
    font-weight: 600;
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.balance-card,
.action-btn,
.transaction-item,
.card {
    animation: fadeIn 0.6s ease-out;
}

.action-btn:nth-child(2),
.transaction-item:nth-child(2) {
    animation-delay: 0.1s;
}

.transaction-item:nth-child(3) {
    animation-delay: 0.2s;
}

/* 用户中心页面 */
.user-header {
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 0 0 30px 30px;
}

.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin-bottom: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.user-name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 5px;
}

.user-id {
    font-size: 14px;
    opacity: 0.8;
}

.menu-list {
    margin: 20px;
}

.menu-item {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.menu-item-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.menu-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #667eea;
}

.menu-text {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
}

.menu-arrow {
    color: #a0aec0;
    font-size: 18px;
}

/* 明细页面 */
.detail-date-header {
    padding: 15px 20px;
    background: rgba(255,255,255,0.95);
    font-weight: 600;
    color: #2d3748;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    top: 0;
    z-index: 5;
}

.detail-date-summary {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #718096;
    margin-top: 5px;
}

/* 遮罩层 */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* 响应式调整 */
@media (max-width: 400px) {
    .phone-frame {
        width: 100%;
        height: 100vh;
        border-radius: 0;
        padding: 0;
    }
    
    .screen {
        border-radius: 0;
    }
}

/* 预算概览卡片 */
.budget-overview-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.budget-overview-card .section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.budget-link {
    font-size: 14px;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.budget-progress {
    margin: 15px 0;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
    color: #718096;
}

.progress-bar-container {
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-normal {
    background: #4CAF50;
}

.progress-warning {
    background: #FFC107;
}

.progress-danger {
    background: #dc3545;
}

.budget-categories-mini {
    margin-top: 15px;
}

.category-budget-item {
    margin-bottom: 12px;
}

.category-budget-info {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
}

.category-icon {
    margin-right: 8px;
    font-size: 16px;
}

.category-name {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: #2d3748;
}

.category-amount {
    font-size: 14px;
    color: #718096;
}

.category-progress-bar {
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
}

.category-progress {
    height: 100%;
    background: #667eea;
    border-radius: 3px;
}

.category-item.active .category-icon {
    background: #667eea;
    color: white;
}

.category-name {
    font-size: 12px;
    color: #718096;
}

.category-item.active .category-name {
    color: #667eea;
    font-weight: 600;
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.balance-card,
.action-btn,
.transaction-item,
.card {
    animation: fadeIn 0.6s ease-out;
}

.action-btn:nth-child(2),
.transaction-item:nth-child(2) {
    animation-delay: 0.1s;
}

.transaction-item:nth-child(3) {
    animation-delay: 0.2s;
}

/* 用户中心页面 */
.user-header {
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 0 0 30px 30px;
}

.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin-bottom: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.user-name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 5px;
}

.user-id {
    font-size: 14px;
    opacity: 0.8;
}

.menu-list {
    margin: 20px;
}

.menu-item {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.menu-item-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.menu-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #667eea;
}

.menu-text {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
}

.menu-arrow {
    color: #a0aec0;
    font-size: 18px;
}

/* 明细页面 */
.detail-date-header {
    padding: 15px 20px;
    background: rgba(255,255,255,0.95);
    font-weight: 600;
    color: #2d3748;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    top: 0;
    z-index: 5;
}

.detail-date-summary {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #718096;
    margin-top: 5px;
}

/* 遮罩层 */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* 响应式调整 */
@media (max-width: 400px) {
    .phone-frame {
        width: 100%;
        height: 100vh;
        border-radius: 0;
        padding: 0;
    }
    
    .screen {
        border-radius: 0;
    }
}

/* 预算概览卡片 */
.budget-overview-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.budget-overview-card .section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.budget-link {
    font-size: 14px;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.budget-progress {
    margin: 15px 0;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
    color: #718096;
}

.progress-bar-container {
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-normal {
    background: #4CAF50;
}

.progress-warning {
    background: #FFC107;
}

.progress-danger {
    background: #dc3545;
}

.budget-categories-mini {
    margin-top: 15px;
}

.category-budget-item {
    margin-bottom: 12px;
}

.category-budget-info {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
}

.category-icon {
    margin-right: 8px;
    font-size: 16px;
}

.category-name {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: #2d3748;
}

.category-amount {
    font-size: 14px;
    color: #718096;
}

.category-progress-bar {
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
}

.category-progress {
    height: 100%;
    background: #667eea;
    border-radius: 3px;
}

.category-item.active .category-icon {
    background: #667eea;
    color: white;
}

.category-name {
    font-size: 12px;
    color: #718096;
}

.category-item.active .category-name {
    color: #667eea;
    font-weight: 600;
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.balance-card,
.action-btn,
.transaction-item,
.card {
    animation: fadeIn 0.6s ease-out;
}

.action-btn:nth-child(2),
.transaction-item:nth-child(2) {
    animation-delay: 0.1s;
}

.transaction-item:nth-child(3) {
    animation-delay: 0.2s;
}

/* 用户中心页面 */
.user-header {
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 0 0 30px 30px;
}

.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin-bottom: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.user-name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 5px;
}

.user-id {
    font-size: 14px;
    opacity: 0.8;
}

.menu-list {
    margin: 20px;
}

.menu-item {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.menu-item-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.menu-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #667eea;
}

.menu-text {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
}

.menu-arrow {
    color: #a0aec0;
    font-size: 18px;
}

/* 明细页面 */
.detail-date-header {
    padding: 15px 20px;
    background: rgba(255,255,255,0.95);
    font-weight: 600;
    color: #2d3748;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    top: 0;
    z-index: 5;
}

.detail-date-summary {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #718096;
    margin-top: 5px;
}

/* 遮罩层 */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* 响应式调整 */
@media (max-width: 400px) {
    .phone-frame {
        width: 100%;
        height: 100vh;
        border-radius: 0;
        padding: 0;
    }
    
    .screen {
        border-radius: 0;
    }
}

/* 预算概览卡片 */
.budget-overview-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.budget-overview-card .section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.budget-link {
    font-size: 14px;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.budget-progress {
    margin: 15px 0;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
    color: #718096;
}

.progress-bar-container {
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}